package com.ujs.servicevod.config;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import com.ujs.servicevod.utils.ConstantPropertiesUtils;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhangshihao
 * @create 2023-08-09 13:27
 */
@Configuration
public class AlyVodClient {
    public static DefaultAcsClient initVodClient() {
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, ConstantPropertiesUtils.KEY_ID, ConstantPropertiesUtils.KEY_SECRET);
        return new DefaultAcsClient(profile);
    }
}
